package com.zw.stock_sell_storage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zw.stock_sell_storage.dto.MyPageDto;
import com.zw.stock_sell_storage.dto.PurchasingInformationDto;
import com.zw.stock_sell_storage.dto.ex.PurchasingInformationDtoEx;
import com.zw.stock_sell_storage.dto.ex.QueryTimeScopeDtoEx;

/**
 * 采购信息业务层
 */
public interface IPurchasingInformationService {
    /**
     * 分页查询采购信息
     * @param myPageDto 自定义分页实体对象
     * @return 返回分页完成对象
     */
    Page<PurchasingInformationDto> queryPurchasingInformationList(MyPageDto<QueryTimeScopeDtoEx<PurchasingInformationDto>> myPageDto);

    /**
     * 通过id查询采购信息
     * @param purchasingId 采购id
     * @return 返回采购
     */
    PurchasingInformationDtoEx queryPurchasingInformationById(int purchasingId);

    /**
     * 添加采购信息
     * @param purchasingInformationDto 采购信息实体对象
     * @return 返回是否添加成功
     */
    boolean addPurchasingInformation(PurchasingInformationDto purchasingInformationDto);
}
